{block name="style"}
{/block}
{block name="content"}
<div class="info-header">
    <div class="layui-row">
        <div class="layui-col-sm3">
            <label class="layui-form-label">渠道</label>
            <div class="layui-input-block">
                <input type="text" value="{$settings.channel.channel_name}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-sm3">
            <label class="layui-form-label">国家</label>
            <div class="layui-input-block">
                <input type="text" value="{$settings.country.name_ch}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-sm3">
            <label class="layui-form-label">承诺天数</label>
            <div class="layui-input-block">
                <input type="text" value="{$settings.promise_day ? $settings.promise_day . '天' : ''}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-sm3">
            <label class="layui-form-label">平均时效</label>
            <div class="layui-input-block">
                <input type="text" value="{$settings.avg_day ? abs($settings.avg_day) . '天' : ''}" readonly class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-sm3">
            <label class="layui-form-label">妥投率</label>
            <div class="layui-input-block">
                <input type="text" value="{$settings.success_rate ? $settings.success_rate . '%' : ''}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-sm3">
            <label class="layui-form-label">超重费</label>
            <div class="layui-input-block">
                <input type="text" value="{$settings.over_weight > 0 ? $settings.over_weight : ''}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-sm3">
            <label class="layui-form-label">超长费</label>
            <div class="layui-input-block">
                <input type="text" value="{$settings.over_length > 0 ? $settings.over_length : ''}" readonly class="layui-input">
            </div>
        </div>
        <div class="layui-col-sm3">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="text" value="{$settings.status?'可用':'禁用'}" readonly class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-sm12">
            <label class="layui-form-label">不可走属性</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea" readonly>{$settings.exclude_attr}</textarea>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-sm12">
            <label class="layui-form-label">不可走邮编</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea" readonly>{$settings.exclude_post_code}</textarea>
            </div>
        </div>
    </div>
    <div class="layui-row">
        <div class="layui-col-sm12">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea readonly class="layui-textarea">{if isset($settingss)}{$settingss.remark}{/if}</textarea>
            </div>
        </div>
    </div>
</div>
<div class="info-body">
    <div class="layui-row">
        <h2>报价详情</h2>
        <table class="layui-table text-center">
            <thead>
            <tr>
                <th>起始重量(g)</th>
                <th>结束重量(g)</th>
                <th>续重(g)</th>
                <th>最长边(mm)</th>
                <th>价格</th>
                <th>挂号费</th>
                <th>续重费</th>
                <th>操作费</th>
                <th>燃油费</th>
                <th>清关费</th>
                <th>税费</th>
                <th>尾程派送费</th>
                <th>附加费用</th>
                <th>折扣</th>
                <th>体积抛比</th>
                <th>状态</th>
                <th>备注</th>
            </tr>
            </thead>
            <tbody>
            {foreach $settings->quotation as $item}
            <tr>
                <td>{$item.start_weight|abs}</td>
                <td>{$item.end_weight|abs}</td>
                <td>{$item.continue_weight|abs}</td>
                <td>{$item.max_length|abs}</td>
                <td>{$item.price|abs}</td>
                <td>{$item.register_price|abs}</td>
                <td>{$item.continue_weight_price|abs}</td>
                <td>{$item.operation_price|abs}</td>
                <td>{$item.fuel_price|abs}</td>
                <td>{$item.customs_price|abs}</td>
                <td>{$item.backend_price|abs}</td>
                <td>{$item.tax_price|abs}</td>
                <td>{$item.other_price|abs}</td>
                <td>{$item.discount}%</td>
                <td>{$item.paobi?:''}</td>
                <td>
                    <span class="{$item.status?'text-yellow':'text-muted'}"><i class="fa fa-circle"></i>{$item.status?'可用':'禁用'}</span>
                </td>
                <td>{$item.remark}</td>
            </tr>
            {/foreach}
            </tbody>
        </table>
    </div>
</div>
{/block}
{block name="script"}
{/block}